﻿namespace Beetle
{
    using System;

    public class BytesMessage : IMessage
    {
        public byte[] Value;

        public void Load(BufferReader reader)
        {
            this.Value = reader.ToBytes();
        }

        public void Save(BufferWriter writer)
        {
            writer.Write(this.Value, 0, this.Value.Length);
        }
    }
}

